<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/17 0017
 * Time: 下午 2:23
 */
namespace app\test\controller;
use think\console\command\make\Controller;

class Index extends Controller{
    public function mem(){
        $info = [
            'username' =>'633_admin',
//            'oldpwd'=>'123123',
//            'newpwd'=>'123456',
//            'id'=>1,
//            'keyword'=>1
        ];
//        $result = getapi($info,'/member/api/user_list');
//        $result = getapi($info,'/member/api/update');
        $result = getapi($info,'/member/api/login');
//        $result = getapi($info,'/member/api/register');
        dump(decodeData($result));
        print_r($result);
    }
    public function mes(){
        $info =[
            'title' =>1,
            'content' =>1,
            'uid' =>1,
        ];
        $res = getapi($info,'/message/api/mes_add');
        dump(decodeData($res));
        dump($res);
    }
}